/**
 * This file is part of JNotifyOSD.
 *
 * JNotifyOSD is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * JNotifyOSD is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with JNotifyOSD. If not, see <http://www.gnu.org/licenses/>.
 */

package notifyosd;

/**
 * Container of information about a notification server.
 * @author Giulio Franco <g.franco9@studenti.unisa.it>
 */
public class ServerInformation {
    public final String productName;
    public final String vendor;
    public final String version;
    public final String specificationVersion;

    ServerInformation() {
        productName = vendor = version = specificationVersion = "";
    }

    ServerInformation(String productName, String vendor, String version, String specificationVersion) {
        this.productName = productName;
        this.vendor = vendor;
        this.version = version;
        this.specificationVersion = specificationVersion;
    }
    
    @Override
    public String toString() {
        StringBuilder bdr = new StringBuilder(getClass().getName());
        bdr.append("{productName=");
        bdr.append(productName);
        bdr.append(";vendor=");
        bdr.append(vendor);
        bdr.append(";version=");
        bdr.append(version);
        bdr.append(";specificationVersion=");
        bdr.append(specificationVersion);
        bdr.append("}");
        return bdr.toString();
    }
}
